from flask import Blueprint, jsonify
from app.models.diseases import Diseases

bp = Blueprint('disease_routes', __name__)

@bp.route('/<disease_id>', methods=['GET'])
def get_disease(disease_id):
    disease = Diseases.query.get(disease_id)
    if disease:
        return jsonify({
            "name": disease.name,
            "description": disease.description,
            "severity_level": disease.severity_level
        })
    return jsonify({"message": "Disease not found"}), 404


# @bp.route('/all', methods=['GET'])
# def get_all_disease():


